package com.sky.controller.user;

import com.sky.result.Result;
import com.sky.service.ShopService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: zhaoss
 * @Date: 2023/5/3 - 05 - 03 - 20:15
 * @Description: com.sky.controller.user
 * @version: 1.0
 */
@RestController(value = "userShopController")
@RequestMapping("/user/shop")
@Api(tags = "店铺相关接口")
@Slf4j
public class ShopController {
    @Autowired
    private ShopService shopService;
    /**
     * 查询店铺状态
     * @return
     */
    @GetMapping("/status")
    public Result getStatus(){
        return shopService.getStatus();
    }
}
